<!DOCTYPE html>
<html>
<head>
    <title>CMS会议管理系统</title>
    <link rel="stylesheet" href="/styles/common.css"/>
    <style type="text/css">

    </style>
</head>
<body>
<#include 'top.ftl'>
<div class="page-body">
    <#include 'leftMenu.ftl'>
    <div class="page-content">
        <div class="content-nav">
            人员管理 > 会议审批
        </div>
        <table class="listtable">
            <caption>所有待审批会议信息：</caption>
            <tr class="listheader">
                <th>会议名称</th>
                <th>房间号</th>
                <th>开始时间</th>
                <th>会议说明</th>
                <th>当前状态，0为启用，1为会议取消</th>
                <th>操作</th>
            </tr>
            <#if meeting??>
                <#list meeting as meet>
                    <tr>
                        <td>${meet.meetingname}</td>
                        <td>${meet.roomid}</td>
                        <td>${(meet.starttime)?string("yyyy-MM-dd HH:mm:ss")}</td>
                        <td>${meet.description}</td>
                        <td>${meet.status}</td>
                        <td>
                            <a type="button" class="clickbutton"
                               href="/admin/updatemeetingstatus?meetingid=${meet.meetingid}&status=0">启用</a>
                            <a type="button" class="clickbutton"
                               href="/admin/updatemeetingstatus?meetingid=${meet.meetingid}&status=1">会议未通过，取消会议</a>
                        </td>
                    </tr>
                </#list>
            </#if>
        </table>
    </div>
</div>
<div class="page-footer">
    <hr/>
    更多问题，欢迎联系<a href="mailto:1626750032@qq.com">管理员</a>
    <img src="/images/footer.png" alt="Meeting"/>
</div>
</body>
</html>